import {
  TENANT,TENANTCHANGE,TENANTDEV,TENANTTREE,
  TENANTADD
} from "./api";
import { METHOD, request } from "@/utils/request";

//设备列表
export function list(params) {
  return request(TENANT, METHOD.GET, params);
}
//改变租户状态
export function change(params) {
  return request(TENANTCHANGE, METHOD.POST, params);
}
//查看租户设备
export function devList(params) {
  return request(TENANTDEV, METHOD.POST, params);
}
//查看租户组织结构
export function tree(params) {
  return request(TENANTTREE, METHOD.POST, params);
}
//新增租户
export function add(params) {
  return request(TENANTADD, METHOD.POST, params);
}
